import request from '@/utils/request'

// 查询设备时间偏差列表
export function listTimedeviation(query) {
  return request({
    url: '/system/timedeviation/list',
    method: 'get',
    params: query
  })
}

// 查询设备时间偏差详细
export function getTimedeviation(id) {
  return request({
    url: '/system/timedeviation/' + id,
    method: 'get'
  })
}

// 新增设备时间偏差
export function addTimedeviation(data) {
  return request({
    url: '/system/timedeviation',
    method: 'post',
    data: data
  })
}

// 修改设备时间偏差
export function updateTimedeviation(data) {
  return request({
    url: '/system/timedeviation',
    method: 'put',
    data: data
  })
}

// 删除设备时间偏差
export function delTimedeviation(id) {
  return request({
    url: '/system/timedeviation/' + id,
    method: 'delete'
  })
}
